/* pages/preference/preference.scss */
.restrictions-container {
  min-height: 100vh;
  background: #ffffff;
  padding: 0 20rpx 120rpx;
}

/* 说明文字 */
.description {
  padding: 20rpx 0;
  border-bottom: 1rpx solid #f0f0f0;
  margin-bottom: 20rpx;
}

.desc-text {
  font-size: 24rpx;
  color: #999999;
  line-height: 1.5;
}

/* 分类区域 */
.category-section {
  margin-bottom: 40rpx;
}

.category-header {
  margin-bottom: 20rpx;
}

.category-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333333;
}

/* 网格布局 */
.items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16rpx;
}

/* 食材按钮 */
.item-button {
  padding: 20rpx 16rpx;
  background-color: #f5f5f5;
  color: #333333;
  border-radius: 12rpx;
  font-size: 26rpx;
  text-align: center;
  border: none;
  transition: all 0.2s ease;
  min-height: 80rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-button:active {
  transform: scale(0.98);
  opacity: 0.8;
}

.item-button.selected {
  background-color: #1890ff;
  color: #ffffff;
}

/* 特殊处理：其他海鲜按钮跨两列 */
.item-button:nth-child(15) {
  grid-column: span 2;
}

/* 底部操作按钮 */
.footer-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 20rpx;
  border-top: 1rpx solid #f0f0f0;
  display: flex;
  gap: 20rpx;
  z-index: 100;
}

.clear-btn, .save-btn {
  flex: 1;
  height: 88rpx;
  border-radius: 12rpx;
  font-size: 28rpx;
  font-weight: 500;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-btn {
  background-color: #f5f5f5;
  color: #666666;
}

.save-btn {
  background-color: #1890ff;
  color: #ffffff;
}

.clear-btn:active, .save-btn:active {
  transform: scale(0.98);
  opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 750rpx) {
  .items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600rpx) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

